import java.util.Scanner;

public class Dengyao {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入三角形的高度");
        int h = input.nextInt();
        for (int j = 1; j <= h; j++) {
            for (int i =1; i <=h-j; i++) {
                System.out.print(" ");
            }
            for (int i = 1; i <= 2 * j- 1; i++) {
                System.out.print("*");
            }
            System.out.println();
        }

    }
}


